package cn.yougou.vo;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 一级二级分类VO
 */
public class YgCategoryVo implements Serializable {

    private Integer id;
    /**
     * 类目名称
     */
    private String name;
    /**
     * 类目广告语介绍
     */
    private String desc;
    /**
     * 父类目ID   0代表是一级分类；其余是二级分类，二级分类是和一级分类绑定在一起的
     */
    private Integer pid;
    /**
     * 类目图标
     */
    private String iconurl;
    /**
     * 类目图片
     */
    private String picurl;
    /**
     * 排序
     */
    private Integer sortorder;
    /**
     * 创建时间
     */
    private Date addtime;
    /**
     * 更新时间
     */
    private Date updatetime;

    /**
     * 逻辑删除
     */
    private Integer deleted;

    /**
     * 代表是几级分类
     */
    private String level;

    /**
     * 子类目数据
     */
    private List<YgCategoryVo> children;

    public YgCategoryVo() {
    }


    public YgCategoryVo(List<YgCategoryVo> children) {
        this.children = children;
    }


    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public List getChildren() {
        return children;
    }

    public void setChildren(List children) {
        this.children = children;
    }
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getIconurl() {
        return iconurl;
    }

    public void setIconurl(String iconurl) {
        this.iconurl = iconurl;
    }

    public String getPicurl() {
        return picurl;
    }

    public void setPicurl(String picurl) {
        this.picurl = picurl;
    }

    public Integer getSortorder() {
        return sortorder;
    }

    public void setSortorder(Integer sortorder) {
        this.sortorder = sortorder;
    }

    public Date getAddtime() {
        return addtime;
    }

    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }


}
